package com.one.blocks.rbac.convert;

import com.one.blocks.mvc.convert.BaseDomainConvert;
import com.one.blocks.rbac.controller.query.SysUserQuery;
import com.one.blocks.rbac.controller.vo.SysAccountVo;
import com.one.blocks.rbac.controller.vo.SysUserVo;
import com.one.blocks.rbac.domain.SysUser;
import com.one.blocks.rbac.util.SubjectHelper;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author <a href="mailto:idler41@163.con">idler41</a> created on 2023-10-25 10:58:07
 */
@Mapper(uses = {TimestampConvert.class}, imports = {SubjectHelper.class})
public interface SysUserConvert extends BaseDomainConvert<SysUser, SysUserVo, SysUserQuery> {

    public static SysUserConvert INSTANCE = Mappers.getMapper(SysUserConvert.class);

    SysAccountVo entityToAccountVo(SysUser sysUser);
}